package com.javalong.mir.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.javalong.mir.dwz.vo.ResponseVO;
import com.javalong.mir.service.BannerService;

@RequestMapping("banner")
@Controller
public class BannerController {

	@Autowired
	private BannerService bannerService;
	
	@RequestMapping("getList")
	@ResponseBody
	public String getList(@RequestParam("pageIndex") int pageIndex, @RequestParam("pageSize") int pageSize){
		return new ResponseVO(bannerService.getList(pageIndex, pageSize)).toString();
	}
	
}
